﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace GuiNetE
{
    public partial class Form1 : Form
    {
        private int tal = 0;
        public Form1()
        {
            InitializeComponent();
        }

        private void läsToolStripMenuItem_Click(object sender, EventArgs e)
        {
            FormIn fin = new FormIn(ref tal);
        }

        private void skrivToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.LabelTal.Text = tal.ToString();
            this.Invalidate();
        }

        private void avslutaToolStripMenuItem_Click(object sender, EventArgs e)
        {
            this.Close();
        }
    }
}
